#include "BottomCatcher.h"

cBottomCatcher::cBottomCatcher(void)
{
	m_MessageStock = NO_MESSAGE;
}

cBottomCatcher::~cBottomCatcher(void)
{
}

BOOL cBottomCatcher::Execute(unsigned char *keystate, BOOL *locks, int ex)
{
	switch (m_MessageStock)
	{
	case NO_MESSAGE:
		return MY_BOTTOM_CATCHER_DEFAULT;

	case MY_CURSOR_PRESS_SPACE:
		m_MessageStock = NO_MESSAGE;
		return MY_BOTTOM_CATCHER_SHOW_SYSTEM_MENU;

	default:
		return MY_BOTTOM_CATCHER_DEFAULT;
	}

	return MY_BOTTOM_CATCHER_DEFAULT;
}

BOOL cBottomCatcher::ReceiveDirective(int message)
{
	m_MessageStock = message;

	return TRUE;
}
